package com.zzq.myeureka;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@EnableEurekaServer
@SpringBootApplication
@RestController
public class MyeurekaConfig1Application {
    @GetMapping("/test")
    public String test(){
        return "hello world";
    }

    public static void main(String[] args) {
        SpringApplication.run(MyeurekaConfig1Application.class, args);
    }

}
